package com.summer.framework.redis.lock;

import com.summer.framework.base.lock.LockService;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.concurrent.locks.Lock;

/**
 * Description:
 *
 * @auther Ice Yang
 * Date 2025/9/18 11:38
 */
@Component
public class RedisLockService implements LockService {

    @Autowired
    private RedissonClient client;

    @Override
    public Lock getLock(String key) {
        return client.getLock(key);
    }
}
